<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::KernelMeanClassifier&lt; InputType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_kernel_mean_classifier.html">KernelMeanClassifier</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_kernel_mean_classifier-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::KernelMeanClassifier&lt; InputType &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__supervised__trainer.html">Supervised Trainers</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Kernelized mean-classifier.  
 <a href="classshark_1_1_kernel_mean_classifier.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_kernel_mean_classifier_8h_source.html">shark/Algorithms/Trainers/KernelMeanClassifier.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::KernelMeanClassifier&lt; InputType &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_kernel_mean_classifier__inherit__graph.png" border="0" usemap="#ashark_1_1_kernel_mean_classifier_3_01_input_type_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_kernel_mean_classifier_3_01_input_type_01_4_inherit__map" id="ashark_1_1_kernel_mean_classifier_3_01_input_type_01_4_inherit__map">
<area shape="rect" title="Kernelized mean&#45;classifier." alt="" coords="15,109,200,150"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title=" " alt="" coords="5,5,210,61"/>
<area shape="poly" title=" " alt="" coords="110,77,110,109,105,109,105,77"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a005f4bc1711987b639d5aea79526a497" id="r_a005f4bc1711987b639d5aea79526a497"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_kernel_mean_classifier.html#a005f4bc1711987b639d5aea79526a497">KernelMeanClassifier</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; *kernel)</td></tr>
<tr class="separator:a005f4bc1711987b639d5aea79526a497"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadb6d7c949ff748325c4a4f57c5b31ab" id="r_aadb6d7c949ff748325c4a4f57c5b31ab"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_kernel_mean_classifier.html#aadb6d7c949ff748325c4a4f57c5b31ab">name</a> () const</td></tr>
<tr class="memdesc:aadb6d7c949ff748325c4a4f57c5b31ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the name of the object  <br /></td></tr>
<tr class="separator:aadb6d7c949ff748325c4a4f57c5b31ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81f1f20f6bedb854fab0193d3174dac2" id="r_a81f1f20f6bedb854fab0193d3174dac2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_kernel_mean_classifier.html#a81f1f20f6bedb854fab0193d3174dac2">train</a> (<a class="el" href="structshark_1_1_kernel_classifier.html">KernelClassifier</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; &amp;model, <a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, unsigned int &gt; const &amp;dataset)</td></tr>
<tr class="separator:a81f1f20f6bedb854fab0193d3174dac2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_weighted_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_weighted_trainer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_weighted_trainer.html">shark::AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt;, unsigned int &gt;</a></td></tr>
<tr class="memitem:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer" id="r_ad35ae0b236c45b73f749285a54288e89"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad35ae0b236c45b73f749285a54288e89">train</a> (<a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ab6d74ebe9e01f9eefb70f9eb12738ffe">WeightedDatasetType</a> const &amp;dataset)=0</td></tr>
<tr class="memdesc:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm and trains a model on the given weighted data.  <br /></td></tr>
<tr class="separator:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer" id="r_a9e5711480e4f1e214ff3c30a9604d10a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a9e5711480e4f1e214ff3c30a9604d10a">train</a> (<a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8c8370c0d2c2550a50df4d6b0bccf42b">DatasetType</a> const &amp;dataset)</td></tr>
<tr class="memdesc:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm and trains a model on the given unweighted data.  <br /></td></tr>
<tr class="separator:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_trainer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</a></td></tr>
<tr class="memitem:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer" id="r_a71d3fd2567473d746ecb733d7fa28c7e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a71d3fd2567473d746ecb733d7fa28c7e">train</a> (<a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a> const &amp;dataset)=0</td></tr>
<tr class="memdesc:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Core of the Trainer interface.  <br /></td></tr>
<tr class="separator:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_nameable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_nameable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_nameable.html">shark::INameable</a></td></tr>
<tr class="memitem:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable" id="r_a877dbdfc6b58ea836495143cea44a98c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a877dbdfc6b58ea836495143cea44a98c">~INameable</a> ()</td></tr>
<tr class="separator:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_serializable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_serializable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_serializable.html">shark::ISerializable</a></td></tr>
<tr class="memitem:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable" id="r_a7baa9ce108d7278822297ce15882782a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a7baa9ce108d7278822297ce15882782a">~ISerializable</a> ()</td></tr>
<tr class="memdesc:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual d'tor.  <br /></td></tr>
<tr class="separator:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable" id="r_ad4ad9a7c274deff642f91e98417fbc63"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#ad4ad9a7c274deff642f91e98417fbc63">read</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive)</td></tr>
<tr class="memdesc:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the component from the supplied archive.  <br /></td></tr>
<tr class="separator:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable" id="r_a9bddedd42933c922e323b73131f62f12"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a9bddedd42933c922e323b73131f62f12">write</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive) const</td></tr>
<tr class="memdesc:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the component to the supplied archive.  <br /></td></tr>
<tr class="separator:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable" id="r_abdda0c5b8e065b8afbac2cba8f58e841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#abdda0c5b8e065b8afbac2cba8f58e841">load</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive, unsigned int version)</td></tr>
<tr class="memdesc:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned loading of components, calls read(...).  <br /></td></tr>
<tr class="separator:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable" id="r_a5bf66fa8db15cc529bec98976a2f5255"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a5bf66fa8db15cc529bec98976a2f5255">save</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive, unsigned int version) const</td></tr>
<tr class="memdesc:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned storing of components, calls write(...).  <br /></td></tr>
<tr class="separator:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable" id="r_a4560a94e8f4908fe8627e41e7d965735"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a4560a94e8f4908fe8627e41e7d965735">BOOST_SERIALIZATION_SPLIT_MEMBER</a> ()</td></tr>
<tr class="separator:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa3d65c3cfebd511aa4014cbc49ac729b" id="r_aa3d65c3cfebd511aa4014cbc49ac729b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_kernel_mean_classifier.html#aa3d65c3cfebd511aa4014cbc49ac729b">mpe_kernel</a></td></tr>
<tr class="separator:aa3d65c3cfebd511aa4014cbc49ac729b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_weighted_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_weighted_trainer')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_weighted_trainer.html">shark::AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt;, unsigned int &gt;</a></td></tr>
<tr class="memitem:ad2ad0a52ecd9ac8677df6dbf403b68b4 inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_ad2ad0a52ecd9ac8677df6dbf403b68b4"><td class="memItemLeft" align="right" valign="top">typedef base_type::ModelType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a></td></tr>
<tr class="separator:ad2ad0a52ecd9ac8677df6dbf403b68b4 inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11e51b154b87ed5e33b6ce2c830cd3d6 inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a11e51b154b87ed5e33b6ce2c830cd3d6"><td class="memItemLeft" align="right" valign="top">typedef base_type::InputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a></td></tr>
<tr class="separator:a11e51b154b87ed5e33b6ce2c830cd3d6 inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc4b95c06687c88b75ea8db8187336d inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a8cc4b95c06687c88b75ea8db8187336d"><td class="memItemLeft" align="right" valign="top">typedef base_type::LabelType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a></td></tr>
<tr class="separator:a8cc4b95c06687c88b75ea8db8187336d inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c8370c0d2c2550a50df4d6b0bccf42b inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a8c8370c0d2c2550a50df4d6b0bccf42b"><td class="memItemLeft" align="right" valign="top">typedef base_type::DatasetType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8c8370c0d2c2550a50df4d6b0bccf42b">DatasetType</a></td></tr>
<tr class="separator:a8c8370c0d2c2550a50df4d6b0bccf42b inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6d74ebe9e01f9eefb70f9eb12738ffe inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_ab6d74ebe9e01f9eefb70f9eb12738ffe"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ab6d74ebe9e01f9eefb70f9eb12738ffe">WeightedDatasetType</a></td></tr>
<tr class="separator:ab6d74ebe9e01f9eefb70f9eb12738ffe inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_trainer')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</a></td></tr>
<tr class="memitem:a0d5c9d35b614d6a33e4e8bfeaf1e9298 inherit pub_types_classshark_1_1_abstract_trainer" id="r_a0d5c9d35b614d6a33e4e8bfeaf1e9298"><td class="memItemLeft" align="right" valign="top">typedef Model&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a></td></tr>
<tr class="separator:a0d5c9d35b614d6a33e4e8bfeaf1e9298 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cfa7cdd27b8bb162e64188095f8fa71 inherit pub_types_classshark_1_1_abstract_trainer" id="r_a0cfa7cdd27b8bb162e64188095f8fa71"><td class="memItemLeft" align="right" valign="top">typedef ModelType::InputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a></td></tr>
<tr class="separator:a0cfa7cdd27b8bb162e64188095f8fa71 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4e344106831fb8227c2120681588ea9 inherit pub_types_classshark_1_1_abstract_trainer" id="r_aa4e344106831fb8227c2120681588ea9"><td class="memItemLeft" align="right" valign="top">typedef LabelTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a></td></tr>
<tr class="separator:aa4e344106831fb8227c2120681588ea9 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4730fe9d59622d35d95cd4233f8d7af inherit pub_types_classshark_1_1_abstract_trainer" id="r_aa4730fe9d59622d35d95cd4233f8d7af"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a>, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a></td></tr>
<tr class="separator:aa4730fe9d59622d35d95cd4233f8d7af inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>&gt;<br />
class shark::KernelMeanClassifier&lt; InputType &gt;</div><p>Kernelized mean-classifier. </p>
<p>Computes the mean of the training data in feature space for each class and assigns a new data point to the class with the nearest mean. The trainer supports multi-class and weighted data</p>
<p>The resulting classifier is a kernel expansion as assigning the label with minimum distance (or maximum negative distance by convention for classifiers) </p><p class="formulaDsp">
\[ max -1/2 ||\phi(x) - m_i||^2 = &lt;\phi(x), m_i&gt; - 1/2&lt;m_i,m_i&gt; \]
</p>
 
<p class="definition">Definition at line <a class="el" href="_kernel_mean_classifier_8h_source.html#l00055">55</a> of file <a class="el" href="_kernel_mean_classifier_8h_source.html">KernelMeanClassifier.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a005f4bc1711987b639d5aea79526a497" name="a005f4bc1711987b639d5aea79526a497"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a005f4bc1711987b639d5aea79526a497">&#9670;&#160;</a></span>KernelMeanClassifier()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_kernel_mean_classifier.html">shark::KernelMeanClassifier</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::KernelMeanClassifier </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; *&#160;</td>
          <td class="paramname"><em>kernel</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_kernel_mean_classifier_8h_source.html#l00057">57</a> of file <a class="el" href="_kernel_mean_classifier_8h_source.html">KernelMeanClassifier.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aadb6d7c949ff748325c4a4f57c5b31ab" name="aadb6d7c949ff748325c4a4f57c5b31ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadb6d7c949ff748325c4a4f57c5b31ab">&#9670;&#160;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classshark_1_1_kernel_mean_classifier.html">shark::KernelMeanClassifier</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>returns the name of the object </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">shark::INameable</a>.</p>

<p class="definition">Definition at line <a class="el" href="_kernel_mean_classifier_8h_source.html#l00059">59</a> of file <a class="el" href="_kernel_mean_classifier_8h_source.html">KernelMeanClassifier.h</a>.</p>

</div>
</div>
<a id="a81f1f20f6bedb854fab0193d3174dac2" name="a81f1f20f6bedb854fab0193d3174dac2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81f1f20f6bedb854fab0193d3174dac2">&#9670;&#160;</a></span>train()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_kernel_mean_classifier.html">shark::KernelMeanClassifier</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::train </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structshark_1_1_kernel_classifier.html">KernelClassifier</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>model</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, unsigned int &gt; const &amp;&#160;</td>
          <td class="paramname"><em>dataset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_kernel_mean_classifier_8h_source.html#l00063">63</a> of file <a class="el" href="_kernel_mean_classifier_8h_source.html">KernelMeanClassifier.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#ac661a3b9018ce302c0af5c45450adb40">shark::classWeight()</a>, <a class="el" href="classshark_1_1_classifier.html#adf58b2ed9969bad9828772dd23c59c02">shark::Classifier&lt; Model &gt;::decisionFunction()</a>, <a class="el" href="classshark_1_1_abstract_kernel_function.html#abd10e3815efade90c7f9e2a7cc8bcb6c">shark::AbstractKernelFunction&lt; InputTypeT &gt;::eval()</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#ad11b0613785e1c6f36f6dd5d32662ead">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::inputs()</a>, <a class="el" href="classshark_1_1_kernel_mean_classifier.html#aa3d65c3cfebd511aa4014cbc49ac729b">shark::KernelMeanClassifier&lt; InputType &gt;::mpe_kernel</a>, <a class="el" href="_exception_8h.html#adce1f80097c69010f5eab2618fa2e971">SHARK_RUNTIME_CHECK</a>, and <a class="el" href="group__shark__globals.html#gae1f82613484173e9fe1a07960dabff63">shark::sqr()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa3d65c3cfebd511aa4014cbc49ac729b" name="aa3d65c3cfebd511aa4014cbc49ac729b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3d65c3cfebd511aa4014cbc49ac729b">&#9670;&#160;</a></span>mpe_kernel</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>&gt;* <a class="el" href="classshark_1_1_kernel_mean_classifier.html">shark::KernelMeanClassifier</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt;::mpe_kernel</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_kernel_mean_classifier_8h_source.html#l00104">104</a> of file <a class="el" href="_kernel_mean_classifier_8h_source.html">KernelMeanClassifier.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_kernel_mean_classifier.html#a81f1f20f6bedb854fab0193d3174dac2">shark::KernelMeanClassifier&lt; InputType &gt;::train()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/Trainers/<a class="el" href="_kernel_mean_classifier_8h_source.html">KernelMeanClassifier.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
